package com.ruoyi.project.monitor.warndistribute.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 告警分发对象 warn_distribute
 * 
 * @author shixiangwen
 * @date 2020-04-09
 */
public class WarnDistribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 资源标识 */
    @Excel(name = "资源标识")
    private String resource;

    /** 错误次数 */
    @Excel(name = "错误次数")
    private Long errorCount;

    /** 正常次数 */
    @Excel(name = "正常次数")
    private Long successCount;

    /** 异常警告发送次数 */
    @Excel(name = "异常警告发送次数")
    private Long errorSendCount;

    /** 恢复警告发送次数 */
    @Excel(name = "恢复警告发送次数")
    private Long restoreSendCount;

    /** 最后发送时间 */
    @Excel(name = "最后发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastSendTime;

    /** 是否异常状态 */
    @Excel(name = "是否异常状态")
    private Long error;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setResource(String resource) 
    {
        this.resource = resource;
    }

    public String getResource() 
    {
        return resource;
    }
    public void setErrorCount(Long errorCount) 
    {
        this.errorCount = errorCount;
    }

    public Long getErrorCount() 
    {
        return errorCount;
    }
    public void setSuccessCount(Long successCount) 
    {
        this.successCount = successCount;
    }

    public Long getSuccessCount() 
    {
        return successCount;
    }
    public void setErrorSendCount(Long errorSendCount) 
    {
        this.errorSendCount = errorSendCount;
    }

    public Long getErrorSendCount() 
    {
        return errorSendCount;
    }
    public void setRestoreSendCount(Long restoreSendCount) 
    {
        this.restoreSendCount = restoreSendCount;
    }

    public Long getRestoreSendCount() 
    {
        return restoreSendCount;
    }
    public void setLastSendTime(Date lastSendTime) 
    {
        this.lastSendTime = lastSendTime;
    }

    public Date getLastSendTime() 
    {
        return lastSendTime;
    }
    public void setError(Long error) 
    {
        this.error = error;
    }

    public Long getError() 
    {
        return error;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("resource", getResource())
            .append("errorCount", getErrorCount())
            .append("successCount", getSuccessCount())
            .append("errorSendCount", getErrorSendCount())
            .append("restoreSendCount", getRestoreSendCount())
            .append("createTime", getCreateTime())
            .append("lastSendTime", getLastSendTime())
            .append("error", getError())
            .toString();
    }
}
